import {Injectable} from '@angular/core';
import {BaseHttpService} from '../base-http.service';
import {Observable} from 'rxjs';

export interface MsdsSpeciality {
  boilingPoint: string;
  msdsEntprId?: number;
  id?: number;
  bombLow: string;
  bombUpper: string;
  densityAir: string;
  densityWater: string;
  dissolution: string;
  facade: string;
  fireTemperature: string;
  flashPoint: string;
  meltingPoint: string;
  octanolWater: string;
  ph: string;
  pressure: string;
  steamPressure: string;
  temperature: string;
  fireHeat: string;
}


@Injectable({
  providedIn: 'root'
})
export class MsdsSpecialityHttpService {

  constructor(public http: BaseHttpService) {
  }


  /*新增msdsSpeciality 信息*/
  public addMsdsSpeciality(param: MsdsSpeciality): Observable<number> {
    return this.http.post('/msdsSpeciality', param, {needSuccessInfo: true});
  }

  /*修改msdsSpeciality信息*/
  public editMsdsSpeciality(param: MsdsSpeciality): Observable<void> {
    return this.http.put('/msdsSpeciality', param, {needSuccessInfo: true});
  }

  /*查询msdsSpeciality详情*/
  public getMsdsSpecialityDetail(msdsEntprId: number): Observable<MsdsSpeciality> {
    return this.http.get('/msdsSpeciality/' + msdsEntprId);
  }

}
